package com.x.agent;

/**
 * Agent执行状态枚举
 *
 * @author xjk
 */
public enum AgentExecutionStatusEnum {

  /**
   * 未开始
   */
  UN_START(0,"not_start","未开始"),
  /**
   * 正在处理
   */
  PROCESSING(1,"processing","正在处理"),
  /**
   * 处理完成
   */
  COMPLETE(2,"complete","处理完成"),
  /**
   * 处理失败
   */
  FAIL(3,"fail","处理失败"),
  /**
   * 卡死
   */
  BLOCK(4,"block","执行出现卡死");

  private int code;
  private String codeStr;
  private String desc;

  AgentExecutionStatusEnum(int code, String codeStr, String desc) {
    this.code = code;
    this.codeStr = codeStr;
    this.desc = desc;
  }

  public int getCode() {
    return code;
  }

  public String getCodeStr() {
    return codeStr;
  }

  public String getDesc() {
    return desc;
  }

  @Override
  public String toString() {
    return codeStr;
  }
}
